import request from '@/utils/request'

/**
 * 获取宠物列表信息
 * @returns
 */
export const getPetList = () => {
  return request('/api/petList', 'get')
}

/**
 * 搜寻宠物
 * @param {string} 按宠物名搜索
 * @returns
 */
export const searchPet = ({ name }) => {
  return request('/api/search/pet', 'get', { name })
}

/**
 *
 * @param {number} 宠物分类 1狗 2猫
 * @returns
 */
export const petSort = ({ sort }) => {
  return request('/api/pet/sort', 'get', { sort })
}

/**
 *  获取动物订单
 * @param {number}
 * @returns
 */
export const orderPet = ({ No }) => {
  return request('/api/pet/order', 'get', { No })
}
